<?php
/* @var $this UserPositionLevelController */
/* @var $model UserPositionLevel */

$this->breadcrumbs=array(
	'User Position Levels'=>array('index'),
	$model->id=>array('view','id'=>$model->id),
	'Update',
);

$this->menu=array(
	array('label'=>'List UserPositionLevel', 'url'=>array('index')),
	array('label'=>'Create UserPositionLevel', 'url'=>array('create')),
	array('label'=>'View UserPositionLevel', 'url'=>array('view', 'id'=>$model->id)),
	array('label'=>'Manage UserPositionLevel', 'url'=>array('admin')),
);
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . "/global/js/pages/adminUserLevel.js");
//Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . "/global/js/pages/user.js");
?>
<script>
var _siteUrl = '<?php echo  Yii::app()->params['siteUrl']?>';
</script>
<span class="page_h3">更新 元素职级信息 <?php echo $model->unique_id; ?></span>
    <form action="#" method="post" id="form2">
    <table cellpadding="1" cellspacing="1" class="c_table" >
        <tr  class="r1">
            <td class='c_row0' width="140" align="right">工号：</td>
            <td width="450"><input type="text" autocomplete="off" name="user_level_unique_id" id="user_level_unique_id" class="small_input bg_orange" value="" />
            <span class="red">*</span></td>
            <td class="red"></td>
        </tr>
        <tr class="r2">
            <td class='c_row0' align="right">职位描述：</td>
            <td>
            <?php echo CHtml::dropDownList('attr_id' ,isset($userLevel->attr_id)?$userLevel->attr_id:0 ,$paOption,array('class'=>'big_select')); ?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r1">
            <td class='c_row0' align="right">职位级别 L：</td>
            <td>
            <?php echo CHtml::dropDownList('attr_L_id' ,isset($userLevel->attr_L_id)?$userLevel->attr_L_id:0 ,$positionLevelOptionL,array('class'=>'big_select')); ?>
            </td>
            <td class="red"></td>
        </tr>
        <tr  class="r2">
            <td class='c_row0' align="right">职位级别 M：</td>
            <td>
            <?php echo CHtml::dropDownList('attr_M_id' ,isset($userLevel->attr_M_id)?$userLevel->attr_M_id:0 ,$positionLevelOptionM,array('class'=>'big_select')); ?>
            </td>
            <td class="red"></td>
        </tr>
         <tr  class="r2">
            <td class='c_row0' align="right">职位（中文）：</td>
            <td>
            <input type="text" autocomplete="off" name="title" id="title" class="small_input2 bg_orange" value="<?php echo $userLevel->title; ?>" />
            </td>
            <td class="red"></td>
        </tr>
        <tr  class="r2">
            <td class='c_row0' align="right">职位（英文）：</td>
            <td>
            <input type="text" autocomplete="off" name="title_en" id="title_en" class="small_input2 bg_orange" value="<?php ?>" />
            </td>
            <td class="red"></td>
        </tr>
        <tr  class="r1">
            <td class='c_row0' align="right">B：</td>
            <td>
            <input type="text"   autocomplete="off" name="B" id="B" class="small_input leave_username_input bg_orange" value="" /> 最高：<span class="red" id="max_b"><?php echo isset($userLevel->B)?$userLevel->B:0; ?></span>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r2">
            <td class='c_row0'></td>
            <td>
                <input type="hidden" name="user_level_id" id="user_level_id" value="0" />
                <input type="hidden" value="<?php echo Yii::app()->request->csrfToken; ?>" id="YII_CSRF_TOKEN2"  name="YII_CSRF_TOKEN2" />
                <input type="button" name="fsubmit" id="form_submit" class="button_grey" onclick="adminUserLevel.createLevel();" value=" 确 定 " />
                <input type="button" name="r" value=" 返 回 " class="button_grey" onclick="history.go(-1);" />
            </td>
            <td></td>
        </tr>
    </table>
    </form>